package com.lty.zyq.dao;

import com.lty.zyq.entity.MealOrder;
import com.lty.zyq.entity.key.MealOrderKey;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface MealOrderDao extends JpaRepository<MealOrder, MealOrderKey> {

    MealOrder findByMealOrderKey(MealOrderKey mealOrderKey);


    List<MealOrder> findByMealOrderKeyInAndState(List<MealOrderKey> mealOrderKeyList, Integer state);

    Integer countByMealOrderKeyDateAndMealOrderKeyWhichMealAndState(String date, Integer whichMeal, Integer state);

    List<MealOrder> findByMealOrderKeyIn(List<MealOrderKey> mealOrderKeyList);
}
